<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>variable</title>
</head>
<body>
<script type="text/javascript">
    var tmp=123;
   if(true){
       tmp='abc';
       console.log(tmp);
        let tmp;
   }

</script>
</body>
</html>